package com.sky.service.admin;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 添加员工
     * @param employeeDTO
     * @return
     */
    Result addEmployee(EmployeeDTO employeeDTO);
    /**
     * 分页查询员工信息
     * @param employeePageQueryDTO
     * @return
     */

    PageResult pageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 启用禁用员工状态
     * @param status
     * @param id
     * @return
     */
    Result startOrStop(int status, int id);

    /**
     * 修改前置回显操作
     * @param id
     * @return
     */
    Result findOne(int id);

    /**
     * 修改
     * @param employee
     * @return
     */
    Result updateEmployee(Employee employee);
}
